import * as mongoose from 'mongoose';


let url="mongodb://localhost:27017/vscodeLuoJi";
let user="test";
let pwd="test";
let db2 = mongoose.createConnection(url, { user: user, pass: pwd });
db2.on('error', console.error.bind(console, '本地连接错误:'));
db2.once('open', function () {
    //一次打开记录
    console.log('本地_____数据库被打开.........');

});

export default db2; 